package com.dataneway.hybridservice;

import org.springframework.util.StringUtils;

public final class ServiceConst {

    public static final String DOT = ".";

    public static final String COM = "com";

    public static final String COMPANY_NAME = "dataneway";

    public static final String PROJECT_NAME = "hybridservice";

    public static final String BASE_PACKAGE_NAME = combine(COM, COMPANY_NAME, PROJECT_NAME);

    public static final String BASE_PACKAGE_NAME_CONST = "com.dataneway.hybridservice";

    public static final String DAO_PACKAGE_NAME = "dao";

    public static final String DAO_PACKAGE = combine(BASE_PACKAGE_NAME, DAO_PACKAGE_NAME);

    public static final String POJO_PACKAGE_NAME = "pojo";

    public static final String POJO_PACKAGE = combine(BASE_PACKAGE_NAME, POJO_PACKAGE_NAME);

    public static final String ENUM_PACKAGE_NAME = "enums";

    public static final String ENUM_PACKAGE = combine(BASE_PACKAGE_NAME, ENUM_PACKAGE_NAME);

    public static final String HANDLER_PACKAGE_NAME = "handler";

    public static final String HANDLER_PACKAGE = combine(BASE_PACKAGE_NAME, HANDLER_PACKAGE_NAME);

    public static final String ENCODER_PACKAGE_NAME = "encoder";

    public static final String ENCODER_PACKAGE = combine(BASE_PACKAGE_NAME, ENCODER_PACKAGE_NAME);

    public static final String DECODER_PACKAGE_NAME = "decoder";

    public static final String DECODER_PACKAGE = combine(BASE_PACKAGE_NAME, DECODER_PACKAGE_NAME);

    public static String combine(String... names) {
        return String.join(DOT, names);
    }
}
